<?php namespace Phpcmf\Controllers\Member;

class Baoming extends \Phpcmf\Member\Module
{

	// 内容列表
	public function index() {
		$this->_Member_List();
	}

    //报名
	public function addo() {
		//$this->_Member_Edit();
		if (IS_AJAX) {
			$tid = $_GET['tid'];
			if(!$tid){
				$this->_json(0, dr_lang('ID参数错误'));
			}
			\Phpcmf\Service::M()->db->table($this->tablename.'_form_hdbm')->insert(array(
			    'cid' => $id,
			    'uid' => $this->uid,
			    'read_name' => '',
			    'read_url' => '',
				'inputtime' => SYS_TIME,
			));
			$this->_json(0, dr_lang('报名成功'), $this->tablename);
		}
		$this->_json(0, dr_lang('请求错误'));
	}

	public function del() {
		$this->_Member_Del();
	}
}
